
import React, { Component } from 'react'
import './2.css';


export default class Button extends Component {

  lodins=()=>{
    setTimeout(()=>{

    })
  }
  render() {
    //获取type属性
    let {type, disabled} = this.props;
    return (
      <button className={type + (disabled ? ' disabled' : '')} >
        {this.props.children}
      </button>
    )
  }
}
